package com.boot.Exception;


import com.boot.enums.ResultENum;

/**
 * Created  on 18-6-29 上午9:50.
 * 作者: Dengjb
 * 说明:
 */
//RuntimeException会事务回滚,Exception不会
public class GirlException extends RuntimeException {

	private Integer code;
	public GirlException(ResultENum resultENum){
		super(resultENum.getMsg());
		this.code = resultENum.getCode();
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
}
